package com.dgut.coal.service.impl;

import com.dgut.coal.dao.PurchaseDao;
import com.dgut.coal.entity.Purchase;
import com.dgut.coal.entity.Supplier;
import com.dgut.coal.service.PurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 0:02 2019/10/4
 * @Modifued BY:
 */
@Service
public class PurchaseServiceImpl implements PurchaseService {

    @Autowired
    PurchaseDao pd;

    @Override
    public int commit(Purchase purchase) {
        return pd.commit(purchase);
    }

    @Override
    public int save(Purchase purchase) {
        return pd.save(purchase);
    }

    @Override
    public List<Purchase> list(String bill_number, Integer state) {
        return pd.list(bill_number,state);
    }

    @Override
    public int deletePurchase(Integer apply_id) {
        return pd.deletePurchase(apply_id);
    }

    @Override
    public int deleteMore(int[] ints) {
        return pd.deleteMore(ints);
    }

    @Override
    public Purchase viewPurchase(Integer apply_id) {
        return pd.viewPurchase(apply_id);
    }

    @Override
    public int updateCommit(Purchase purchase, String edit_date) {
        return pd.updateCommit(purchase,edit_date);
    }

    @Override
    public int updateSave(Purchase purchase, String edit_date) {
        return pd.updateSave(purchase,edit_date);
    }

    @Override
    public List<Purchase> auditPur(Integer apply_id, String bill_number) {
        return pd.auditPur(apply_id,bill_number);
    }

    @Override
    public int auditStatePass(Integer apply_id) {
        return pd.auditStatePass(apply_id);
    }

    @Override
    public int auditStateReject(Integer apply_id) {
        return pd.auditStateReject(apply_id);
    }

    @Override
    public List<Purchase> execList(String bill_numer, Integer exec_state) {
        return pd.execList(bill_numer,exec_state);
    }

    @Override
    public int execFillPass(Integer apply_id) {
        return pd.execFillPass(apply_id);
    }

    @Override
    public List<Supplier> contract(Integer apply_id) {
        return pd.contract(apply_id);
    }

    @Override
    public int count() {
        return pd.count();
    }

    @Override
    public int auditCount() {
        return pd.auditCount();
    }


}
